package cn.jn.lhm.netty.part08.chat.config;

/**
 * @author lhm 2753914576@qq.com
 * @time 2023/11/1 - 0:26
 **/
public class ThreadLocalHolder {
    private static final ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<>();

    public static void set(String value) {
        THREAD_LOCAL.set(value);
    }

    public static String get() {
        return THREAD_LOCAL.get();
    }


    public static void clear() {
        THREAD_LOCAL.remove();
    }

}
